interface REFS {
}

interface INP {
    imageUrl: string;
}

let imageUrl: string;

@YvanUI.BizModule()
export default class ImagePreviewDialog extends YvanUI.BaseDialog<ImagePreviewDialog, REFS, INP> {

    viewResolver(): any {
        imageUrl = this.inParamter.imageUrl;
        return {
            title: `图片预览`,
            modal: false,
            width: 550,
            height: 400,
            body: {
                padding: 0,
                rows: [
                    {
                        view: "template",
                        template: `<img src="` + imageUrl + `" alt="" style="width: 100%;height: 100%;"/>`
                    }
                ]
            }
        };
    }
}